package com.goods.business.service;

import com.github.pagehelper.Page;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.system.PageVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 赵勇镔
 * @Time: 2021/6/7 16:03
 * @Description: 物资类别
 */

public interface ProductCategoryService {

    // http://www.localhost:8989/business/productCategory/categoryTree?pageNum=1&pageSize=5

    // http://www.localhost:8989/business/productCategory/getParentCategoryTre


    //查询一二三级分类
    PageVO<ProductCategoryTreeNodeVO>  categoryTree(Integer pageNum, Integer pageSize);

    //查询所有父类
    List<ProductCategoryTreeNodeVO> getParentCategoryTre();

    //添加分类
    Boolean add(ProductCategoryTreeNodeVO productCategoryTreeNodeVO);

    //根据id修改分类 数据回显
    ProductCategoryTreeNodeVO edit(Long id);

    //修改并保存物资信息
    Boolean update(Long id ,ProductCategoryTreeNodeVO productCategoryTreeNodeVO);

    //根据id删除物资信息
    Boolean delete(Long id);


}
